<?
	
	$mid=2;
	require("required/dbconnect.php");
	require_once("required/function.php");
	checkAccess("allow_product_add",1);
	
	if(empty($_GET["id"]))
	{
		 errRedirect("2","Invalid Access","site_add_process2.php","9");
	}
	
	$id = $_GET["id"];
	
	$product_type = $_GET["product_type"];

	switch($product_type)
	{
		case "product":
			checkAccess("allow_product_add",1);
			$title="Add Product";
			break;
		case "gift";
			checkAccess("allow_gift_management",1);
			$title="Add Gift";
			break;
		default:
			checkAccess("allow_product_add",1);
			$title="Add Product";
			break;
	}
	
	
	require("required/header.php");
	
		
?>	
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
   
    <td valign="top" align="left">
       <table width="95%" align="center">
       		<tr>
            	<td class="title"><?= $title ?></td>
            </tr>
                    
            <tr>
            	<td>				
                	 <div class="dw_success">Product Added</div>
                     <br />
                     <input type="button" value="View added product" onclick="window.open('product_viewfull.php?id=<?= $id ?>','_self')" />
                                     
                </td>  
      		</tr>
        </table> 
    </td>
</table>					
<?
	require("required/footer.php");
?>               
        